#include <iostream>
#define SIZE 100

using namespace std;

void read();

double num[SIZE], s;
int i, n;


int main()
{	
	double ma;
	read();
	
	for (i = 1; i <= n; ++i)
	{	
		ma = (s - num[i]) / (n - 1);
		num[i] = ma;
	}	
	for (i = 1; i <= n; ++i)
		cout << num[i] << " "; 
}

void read()
{
	cout << "n = ";
	cin >> n;
	for (i = 1; i <= n; ++i)
	{	
		cout << "num[" << i << "]= ";
		cin >> num[i];
		s += num[i];
	}
}